package com.xrkj.b2c.exception;

/**
 * 
 * <B>系统名称：</B><BR>
 * <B>模块名称：</B>业务异常<BR>
 * <B>中文类名：</B>业务异常<BR>
 * <B>概要说明：</B><BR>
 * @author 赵子靖
 * @since 2018年7月12日
 */
public class BusinessException extends RuntimeException {

    /** serialVersionUID */
    private static final long serialVersionUID = 2332608236621015980L;

    private String code;

    public BusinessException() {
        super();
    }

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String code, String message) {
        super(message);
        this.code = code;
    }

    public BusinessException(Throwable cause) {
        super(cause);
    }

    public BusinessException(String message, Throwable cause) {
        super(message, cause);
    }

    public BusinessException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}